package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.ShopWithdrawalMapper;
import com.ruoyi.merchant.domain.ShopWithdrawal;
import com.ruoyi.merchant.service.IShopWithdrawalService;

/**
 * 提现记录Service业务层处理
 * 
 * @author Wevon
 * @date 2024-09-11
 */
@Service
public class ShopWithdrawalServiceImpl implements IShopWithdrawalService 
{
    @Autowired
    private ShopWithdrawalMapper shopWithdrawalMapper;

    /**
     * 查询提现记录
     * 
     * @param id 提现记录主键
     * @return 提现记录
     */
    @Override
    public ShopWithdrawal selectShopWithdrawalById(Long id)
    {
        return shopWithdrawalMapper.selectShopWithdrawalById(id);
    }

    /**
     * 查询提现记录列表
     * 
     * @param shopWithdrawal 提现记录
     * @return 提现记录
     */
    @Override
    public List<ShopWithdrawal> selectShopWithdrawalList(ShopWithdrawal shopWithdrawal)
    {
        return shopWithdrawalMapper.selectShopWithdrawalList(shopWithdrawal);
    }

    /**
     * 新增提现记录
     * 
     * @param shopWithdrawal 提现记录
     * @return 结果
     */
    @Override
    public int insertShopWithdrawal(ShopWithdrawal shopWithdrawal)
    {
        return shopWithdrawalMapper.insertShopWithdrawal(shopWithdrawal);
    }

    /**
     * 修改提现记录
     * 
     * @param shopWithdrawal 提现记录
     * @return 结果
     */
    @Override
    public int updateShopWithdrawal(ShopWithdrawal shopWithdrawal)
    {
        return shopWithdrawalMapper.updateShopWithdrawal(shopWithdrawal);
    }

    /**
     * 批量删除提现记录
     * 
     * @param ids 需要删除的提现记录主键
     * @return 结果
     */
    @Override
    public int deleteShopWithdrawalByIds(Long[] ids)
    {
        return shopWithdrawalMapper.deleteShopWithdrawalByIds(ids);
    }

    /**
     * 删除提现记录信息
     * 
     * @param id 提现记录主键
     * @return 结果
     */
    @Override
    public int deleteShopWithdrawalById(Long id)
    {
        return shopWithdrawalMapper.deleteShopWithdrawalById(id);
    }
}
